package com.ssm.gbq.mapper;

import com.ssm.gbq.model.DoctorCategory;
import gbq.ssm.utils.PageBounds;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DoctorCategoryMapper {
    int countByExample(@Param("type") String type);
    int Count();
    List<DoctorCategory> selectByLimitPage(@Param("type") String type,@Param("offset") int offset, @Param("limit")int pageSize);
    /**
     * 获取列表
     */
    PageBounds<DoctorCategory> openDoctorCategoryTable(@Param("type")String type, int currentPage, int pageSize)throws Exception;
    /**
     * 查询所有信息
     */
    List<DoctorCategory> selectAllDoctorCategory();
    /**
     *删除信息
     */
    int deleteDoctorCategoryById(Integer id);
    /**
     * 多删除
     */
    int deleteByPrimaryKey(List<Integer> ids);
    /**
     * 添加
     */
    public int  addDoctorCategory(DoctorCategory doctorCategory);
    /**
     * 修改
     */
    public int  updateDoctorCategory(DoctorCategory doctorCategory);
    /**
     *根据ID查询
     */
    public DoctorCategory findById(@Param("id")Integer id);
}
